home *** CD-ROM | disk | FTP | other *** search
Text File | 2013-04-24 | 53.0 KB | 1,938 lines |
- function setup()
- {
- if(_global.musicOn == true)
- {
- _global.myMusicPlayer.SetTrack("bluep_game");
- _global.myMusicPlayer.SetMaxVolume(100);
- _global.myMusicPlayer.PlayWithCrossFade(0.5);
- }
- cacheMovieClips();
- maxSpeed = 6;
- friction = 0.08;
- numSensitivity = 0.6;
- avatarLife = 1;
- secondBulletCounter = 0;
- numBulletDepth = 100000;
- numBulletDepth2 = 200000;
- numEffectDepth = 500000;
- numEnemyDepth = 300000;
- powerDepth = 400000;
- counter = 0;
- minCounter = 200;
- maxCounter = 400;
- powerUpType = 1;
- nextTween = 0;
- isTouching = false;
- isHeld = false;
- parallel = false;
- spread = false;
- gun2 = false;
- gun3 = false;
- arrBullets = new Array();
- arrEnemy = new Array();
- lasersLeftPosX = _root.lazer._x - 600;
- lasersLeftPosY = _root.lazer._y;
- lasersRightPosX = _root.lazer._x;
- lasersRightPosY = _root.lazer._y;
- lasersTopPosX = _root.lazer2._x;
- lasersTopPosY = _root.lazer2._y;
- lasersBottomPosX = _root.lazer2._x;
- lasersBottomPosY = _root.lazer2._y + 600;
- _root.timer._visible = false;
- startTime = getTimer();
- myTime = getTimer();
- stageState = 0;
- verIndicator = 1;
- horIndicator = 1;
- newSecHitTest = 10;
- secIncrem = 10;
- prevScore = 0;
- enemySetBase = _global.FPSforTweenClass * 5;
- enemyIncrem = 0;
- instDone = false;
- startUpPeriod = true;
- dyingProcess = false;
- killAll = false;
- enemyAppearSec = 1;
- playerLives = 5;
- _root.lives.lives_txt.text = "Lives: " + playerLives;
- _global.jumping = false;
- _global.jumping2 = false;
- _global.mouseTest = false;
- _global.shooting = false;
- _global.oneTime = false;
- _global.justGotHit = false;
- _global.alreadyOut = true;
- _global.cheat = false;
- _global.up = _global.hotKey_up;
- _global.down = _global.hotKey_down;
- _global.rightward = _global.hotKey_right;
- _global.leftward = _global.hotKey_left;
- _global.jump = _global.hotKey_jump;
- _root.powerUpMc.gotoAndPlay("instructions");
- }
- function run()
- {
- _global.myMusicPlayer.RunPlayer();
- myTime = getTimer();
- circleTrapSnap();
- enemyRandomness();
- mouseCurserAdjust();
- keepKeyboardInside();
- keyboardListener();
- moveKeyboardPointer();
- rotateAvatar();
- gunSizeAdjust();
- shoootCheck();
- lazerHitTest();
- controlGameFlow();
- getTimeString(myTime);
- GetAndDisplayScore();
- generatePowerUp();
- powerUpHitTest();
- controlInstruction();
- }
- function adjustLives()
- {
- playerLives--;
- _root.lives.lives_txt.text = "Lives: " + playerLives;
- if(playerLives <= 0)
- {
- _root.pointer.gotoAndPlay("dead");
- }
- else
- {
- _root.pointer.gotoAndPlay("hit");
- }
- }
- function RunTimer()
- {
- if(_root.timer._visible == true)
- {
- var _loc2_ = Math.round((effectTimer - getTimer()) / (effectLength * 1000) * 100);
- if(_loc2_ <= 0)
- {
- HideTimer();
- }
- }
- }
- function HideTimer()
- {
- _root.timer._visible = false;
- }
- function StartTimer()
- {
- _root.timer._visible = true;
- effectTimer = getTimer() + effectLength * 1000;
- }
- function getTimeString(myTime)
- {
- var _loc4_ = Math.floor(myTime / 1000);
- if(_loc4_ > 60)
- {
- var _loc1_ = myTime / 1000;
- var _loc3_ = _loc1_ / 60;
- if(_loc1_ > 59)
- {
- _loc1_ -= Math.floor(_loc3_) * 60;
- }
- var _loc5_ = undefined;
- var _loc2_ = undefined;
- if(_loc3_ < 10)
- {
- _loc2_ = "0" + Math.floor(_loc3_);
- }
- else
- {
- _loc2_ = "" + Math.floor(_loc3_);
- }
- if(_loc1_ < 10)
- {
- _loc5_ = _loc2_ + ":0" + Math.floor(_loc1_);
- }
- else if(_loc1_ == 0)
- {
- _loc5_ = _loc2_ + ":00";
- }
- else
- {
- _loc5_ = _loc2_ + ":" + Math.floor(_loc1_);
- }
- return _loc5_;
- }
- if(_loc4_ < 10)
- {
- _loc5_ = "00:0" + Math.floor(_loc4_);
- }
- else
- {
- _loc5_ = "00:" + Math.floor(_loc4_);
- }
- return _loc5_;
- }
- function GetAndDisplayScore()
- {
- var _loc4_ = getTimeString(myTime - startTime);
- var _loc3_ = Math.round((myTime - startTime - 4000) / 1000 * 75);
- if(prevScore + 80 <= _loc3_)
- {
- _global.cheat = true;
- }
- if(_loc3_ < 0)
- {
- _loc3_ = 0;
- }
- _root.timerr.time_txt.text = "Time: " + _loc4_;
- _root.score.score_txt.text = "Score: " + _loc3_;
- _global.userScore = _loc3_;
- prevScore = _loc3_;
- }
- function lazerHitTest()
- {
- if(_root.lazer.hitTest(_root.pointer) || _root.lazer2.hitTest(_root.pointer) || _root.lazer3.hitTest(_root.pointer) || _root.lazer4.hitTest(_root.pointer) || _root.lazer5.hitTest(_root.pointer) || _root.lazer6.hitTest(_root.pointer) || _root.lazer7.hitTest(_root.pointer) || _root.lazer8.hitTest(_root.pointer) || _root.lazer9.hitTest(_root.pointer) || _root.lazer10.hitTest(_root.pointer) || _root.lazer11.hitTest(_root.pointer) || _root.lazer12.hitTest(_root.pointer) || _root.lazer13.hitTest(_root.pointer) || _root.lazer14.hitTest(_root.pointer) || _root.lazer15.hitTest(_root.pointer) || _root.lazer16.hitTest(_root.pointer) || _root.lazer17.hitTest(_root.pointer) || _root.lazer18.hitTest(_root.pointer) || _root.lazer19.hitTest(_root.pointer) || _root.lazer20.hitTest(_root.pointer))
- {
- if(!isTouching && !_global.jumping2 && !dyingProcess && !_global.justGotHit && !_global.shieldOn)
- {
- adjustLives();
- cleanupBullets();
- isTouching = true;
- }
- }
- else if(isTouching)
- {
- isTouching = false;
- }
- }
- function moveKeyboardPointer()
- {
- _root.pointer._x += vecMomentum._x;
- _root.pointer._y += vecMomentum._y;
- }
- function shoootCheck()
- {
- _root.onMouseDown = function()
- {
- if(!startUpPeriod && !_global.justGotHit && !dyingProcess)
- {
- _global.SoundManager.PlaySound("dink");
- shootGun();
- }
- };
- }
- function keyboardListener()
- {
- if(!isHeld && !_global.justGotHit)
- {
- if(Key.isDown(_global.jump))
- {
- isHeld = true;
- avatarJump();
- }
- if(!Key.isDown(_global.jump))
- {
- isHeld = false;
- }
- }
- if(!Key.isDown(_global.jump))
- {
- isHeld = false;
- }
- if(Key.isDown(_global.up))
- {
- vecMomentum._y -= numSensitivity;
- if(vecMomentum._y < -1 * maxSpeed)
- {
- vecMomentum._y = -1 * maxSpeed;
- }
- }
- else if(Key.isDown(_global.down))
- {
- vecMomentum._y += numSensitivity;
- if(vecMomentum._y > maxSpeed)
- {
- vecMomentum._y = maxSpeed;
- }
- }
- else if(vecMomentum._y > 0)
- {
- vecMomentum._y -= friction;
- if(Math.abs(vecMomentum._y) < 0.5)
- {
- vecMomentum._y = 0;
- }
- }
- else
- {
- vecMomentum._y += friction;
- if(Math.abs(vecMomentum._y) < 0.5)
- {
- vecMomentum._y = 0;
- }
- }
- if(Key.isDown(_global.leftward))
- {
- vecMomentum._x -= numSensitivity;
- if(vecMomentum._x < -1 * maxSpeed)
- {
- vecMomentum._x = -1 * maxSpeed;
- }
- }
- else if(Key.isDown(_global.rightward))
- {
- vecMomentum._x += numSensitivity;
- if(vecMomentum._x > maxSpeed)
- {
- vecMomentum._x = maxSpeed;
- }
- }
- else if(vecMomentum._x > 0)
- {
- vecMomentum._x -= friction;
- if(Math.abs(vecMomentum._x) < 0.5)
- {
- vecMomentum._x = 0;
- }
- }
- else
- {
- vecMomentum._x += friction;
- if(Math.abs(vecMomentum._x) < 0.5)
- {
- vecMomentum._x = 0;
- }
- }
- }
- function avatarJump()
- {
- if(!_global.jumping)
- {
- if(!dyingProcess)
- {
- _global.SoundManager.PlaySound("hollow_push");
- _root.pointer.gotoAndPlay("jump");
- }
- }
- }
- function gunSizeAdjust()
- {
- if(_global.jumping)
- {
- _root.pointer.gun._xscale = 140;
- _root.pointer.gun._yscale = 140;
- _root.pointer.gun._x += 0.2;
- if(_root.pointer.gun._x >= 21)
- {
- _global.jumping = false;
- _root.pointer.gun._x = 19;
- }
- }
- else if(_root.pointer.gun._xscale >= 100)
- {
- _root.pointer.gun._xscale -= 15;
- _root.pointer.gun._yscale -= 15;
- _root.pointer.gun._x = 19;
- }
- }
- function keepKeyboardInside()
- {
- if(_root.pointer._x <= _root.arena._x)
- {
- _root.pointer._x = _root.arena._x;
- if(_root.pointer._y <= _root.arena._y)
- {
- _root.pointer._y = _root.arena._y;
- }
- else if(_root.pointer._y >= _root.arena._height + _root.arena._y)
- {
- _root.pointer._y = _root.arena._height + _root.arena._y;
- }
- }
- else if(_root.pointer._x >= _root.arena._width + _root.arena._x)
- {
- _root.pointer._x = _root.arena._width + _root.arena._x;
- if(_root.pointer._y <= _root.arena._y)
- {
- _root.pointer._y = _root.arena._y;
- }
- else if(_root.pointer._y >= _root.arena._height + _root.arena._y)
- {
- _root.pointer._y = _root.arena._height + _root.arena._y;
- }
- }
- else if(_root.pointer._y <= _root.arena._y)
- {
- _root.pointer._y = _root.arena._y;
- }
- else if(_root.pointer._y >= _root.arena._height + _root.arena._y)
- {
- _root.pointer._y = _root.arena._height + _root.arena._y;
- }
- }
- function rotateAvatar()
- {
- var _loc2_ = new Vector();
- _loc2_._x = _xmouse - _root.pointer._x;
- _loc2_._y = _ymouse - _root.pointer._y;
- var _loc3_ = Math.atan2(_loc2_._y,_loc2_._x);
- var _loc4_ = 360 * _loc3_ / 6.283185307179586;
- _root.pointer._rotation = _loc4_;
- }
- function moveNavi_reset(mc)
- {
- var _loc5_ = 51.7;
- var _loc6_ = 460.2;
- var _loc3_ = 0.75;
- var _loc4_ = _global.FPSforTweenClass;
- var _loc7_ = mc._x;
- var _loc8_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
- myTweening.FPS = _loc4_;
- myTweening.FPS = _loc4_;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveNavi_menu(mc)
- {
- var _loc5_ = 52.7;
- var _loc6_ = 460.2;
- var _loc3_ = 0.75;
- var _loc4_ = _global.FPSforTweenClass;
- var _loc7_ = mc._x;
- var _loc8_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
- myTweening.FPS = _loc4_;
- myTweening.FPS = _loc4_;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveNavi_score(mc)
- {
- var _loc5_ = 130.7;
- var _loc6_ = 460.2;
- var _loc3_ = 0.75;
- var _loc4_ = _global.FPSforTweenClass;
- var _loc7_ = mc._x;
- var _loc8_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
- myTweening.FPS = _loc4_;
- myTweening.FPS = _loc4_;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveNavi_back(mc)
- {
- var _loc5_ = -100;
- var _loc6_ = 460.2;
- var _loc3_ = 0.75;
- var _loc4_ = _global.FPSforTweenClass;
- var _loc7_ = mc._x;
- var _loc8_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
- myTweening.FPS = _loc4_;
- myTweening.FPS = _loc4_;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function mouseCurserAdjust()
- {
- _root.crosshair._x = _xmouse;
- _root.crosshair._y = _ymouse;
- }
- function shootGun()
- {
- var thisRef = this;
- var _loc6_ = "avatarBullet_" + numBulletDepth;
- var _loc3_ = new Vector();
- _loc3_._x = Math.cos(3.141592653589793 * _root.pointer._rotation / 180) * 10;
- _loc3_._y = Math.sin(3.141592653589793 * _root.pointer._rotation / 180) * 10;
- var _loc10_ = {x:_root.pointer.emitter._x,y:_root.pointer.emitter._y};
- _root.pointer.gun.localToGlobal(_loc10_);
- _root.attachMovie("bullet_1",_loc6_,numBulletDepth);
- _root[_loc6_]._x = _loc10_.x;
- _root[_loc6_]._y = _loc10_.y;
- _root[_loc6_].SetMovement(_loc3_._x,_loc3_._y);
- _root[_loc6_]._enemy = false;
- numBulletDepth++;
- if(numBulletDepth >= 200000)
- {
- numBulletDepth = 100000;
- }
- arrBullets.push(_loc6_);
- _root[_loc6_].removeCallback = function(myName)
- {
- thisRef.removeBullet(myName);
- };
- if(parallel)
- {
- var _loc5_ = "avatarBullet_" + numBulletDepth;
- var _loc9_ = {x:_root.pointer.emitter2._x,y:_root.pointer.emitter2._y};
- _root.pointer.gun.localToGlobal(_loc9_);
- _root.attachMovie("bullet_1",_loc5_,numBulletDepth);
- _root[_loc5_]._x = _loc9_.x;
- _root[_loc5_]._y = _loc9_.y;
- _root[_loc5_].SetMovement(_loc3_._x,_loc3_._y);
- _root[_loc5_]._enemy = false;
- numBulletDepth++;
- if(numBulletDepth >= 200000)
- {
- numBulletDepth = 100000;
- }
- arrBullets.push(_loc5_);
- _root[_loc5_].removeCallback = function(myName)
- {
- thisRef.removeBullet(myName);
- };
- var _loc4_ = "avatarBullet_" + numBulletDepth;
- var _loc11_ = {x:_root.pointer.emitter3._x,y:_root.pointer.emitter3._y};
- _root.pointer.gun.localToGlobal(_loc11_);
- _root.attachMovie("bullet_1",_loc4_,numBulletDepth);
- _root[_loc4_]._x = _loc11_.x;
- _root[_loc4_]._y = _loc11_.y;
- _root[_loc4_].SetMovement(_loc3_._x,_loc3_._y);
- _root[_loc4_]._enemy = false;
- numBulletDepth++;
- if(numBulletDepth >= 200000)
- {
- numBulletDepth = 100000;
- }
- arrBullets.push(_loc4_);
- _root[_loc4_].removeCallback = function(myName)
- {
- thisRef.removeBullet(myName);
- };
- }
- if(spread)
- {
- var _loc7_ = new Vector();
- var _loc13_ = _root.pointer._rotation - 10;
- _loc7_._x = Math.cos(3.141592653589793 * _loc13_ / 180) * 10;
- _loc7_._y = Math.sin(3.141592653589793 * _loc13_ / 180) * 10;
- _loc5_ = "avatarBullet_" + numBulletDepth;
- _loc9_ = {x:_root.pointer.emitter2._x,y:_root.pointer.emitter2._y};
- _root.pointer.gun.localToGlobal(_loc9_);
- _root.attachMovie("bullet_1",_loc5_,numBulletDepth);
- _root[_loc5_]._x = _loc9_.x;
- _root[_loc5_]._y = _loc9_.y;
- _root[_loc5_].SetMovement(_loc7_._x,_loc7_._y);
- _root[_loc5_]._enemy = false;
- numBulletDepth++;
- if(numBulletDepth >= 200000)
- {
- numBulletDepth = 100000;
- }
- arrBullets.push(_loc5_);
- _root[_loc5_].removeCallback = function(myName)
- {
- thisRef.removeBullet(myName);
- };
- var _loc8_ = new Vector();
- var _loc12_ = _root.pointer._rotation + 10;
- _loc8_._x = Math.cos(3.141592653589793 * _loc12_ / 180) * 10;
- _loc8_._y = Math.sin(3.141592653589793 * _loc12_ / 180) * 10;
- _loc4_ = "avatarBullet_" + numBulletDepth;
- _loc11_ = {x:_root.pointer.emitter3._x,y:_root.pointer.emitter3._y};
- _root.pointer.gun.localToGlobal(_loc11_);
- _root.attachMovie("bullet_1",_loc4_,numBulletDepth);
- _root[_loc4_]._x = _loc11_.x;
- _root[_loc4_]._y = _loc11_.y;
- _root[_loc4_].SetMovement(_loc8_._x,_loc8_._y);
- _root[_loc4_]._enemy = false;
- numBulletDepth++;
- if(numBulletDepth >= 200000)
- {
- numBulletDepth = 100000;
- }
- arrBullets.push(_loc4_);
- _root[_loc4_].removeCallback = function(myName)
- {
- thisRef.removeBullet(myName);
- };
- }
- }
- function shootEnemyGun(vecDirX, vecDirY, ePosX, ePosY)
- {
- var thisRef = this;
- var _loc4_ = "enemyBullet_" + numBulletDepth2;
- var _loc5_ = {x:ePosX,y:ePosY};
- _root[_loc4_].localToGlobal(_loc5_);
- _root.attachMovie("bullet_2",_loc4_,numBulletDepth2);
- _root[_loc4_]._x = _loc5_.x;
- _root[_loc4_]._y = _loc5_.y;
- _root[_loc4_].SetMovement(vecDirX,vecDirY);
- _root[_loc4_]._enemy = true;
- numBulletDepth2++;
- if(numBulletDepth2 >= 300000)
- {
- numBulletDepth2 = 200000;
- }
- arrBullets.push(_loc4_);
- _global.SoundManager.PlaySound("blip_1");
- _root[_loc4_].removeCallback = function(myName)
- {
- thisRef.removeBullet(myName);
- };
- }
- function removeBullet(strName)
- {
- var _loc1_ = 0;
- while(_loc1_ < arrBullets.length)
- {
- if(strName == arrBullets[_loc1_])
- {
- arrBullets.splice(_loc1_,1);
- break;
- }
- _loc1_ = _loc1_ + 1;
- }
- }
- function cleanupBullets()
- {
- var _loc2_ = 0;
- while(_loc2_ < arrBullets.length)
- {
- _root[arrBullets[_loc2_]].removeMovieClip();
- _loc2_ = _loc2_ + 1;
- }
- delete arrBullets;
- arrBullets = new Array();
- }
- function moveLazerLeft(whichLazer)
- {
- _root[whichLazer]._x = lasersRightX;
- _root[whichLazer]._y = lasersRightY;
- moveIt(_root[whichLazer],lasersLeftPosX,lasersLeftPosY,3);
- }
- function moveLazerDown(whichLazer)
- {
- _root[whichLazer]._x = lasersTopPosX;
- _root[whichLazer]._y = lasersTopPosY;
- moveIt(_root[whichLazer],lasersBottomPosX,lasersBottomPosY,4);
- }
- function moveLazerRight(whichLazer)
- {
- _root[whichLazer]._x = lasersLeftPosX;
- _root[whichLazer]._y = lasersLeftPosY;
- moveIt(_root[whichLazer],lasersRightPosX,lasersRightPosY,3);
- }
- function moveLazerUp(whichLazer)
- {
- _root[whichLazer]._x = lasersBottomPosX;
- _root[whichLazer]._y = lasersBottomPosY;
- moveIt(_root[whichLazer],lasersTopPosX,lasersTopPosY,3);
- }
- function controlInstruction()
- {
- if(!instDone)
- {
- _root.powerUpMc.inst_up_txt.text = "Up: " + outputValue2(_global.up);
- _root.powerUpMc.inst_down_txt.text = "Down: " + outputValue2(_global.down);
- _root.powerUpMc.inst_left_txt.text = "Left: " + outputValue2(_global.leftward);
- _root.powerUpMc.inst_right_txt.text = "Right: " + outputValue2(_global.rightward);
- var _loc3_ = Math.round(myTime - startTime) / 1000;
- if(_loc3_ >= 5)
- {
- instDone = true;
- _root.powerUpMc.gotoAndPlay("instructionsOut");
- }
- }
- _root.powerUpMc.jumpText_txt.text = outputValue2(_global.jump);
- }
- function outputValue2(keyCode)
- {
- var _loc1_ = "";
- switch(keyCode)
- {
- case 8:
- _loc1_ = "BACKSPACE";
- break;
- case 20:
- _loc1_ = "CAPSLOCK";
- break;
- case 17:
- _loc1_ = "CONTROL";
- break;
- case 46:
- _loc1_ = "DELETE";
- break;
- case 40:
- _loc1_ = "DOWN";
- break;
- case 35:
- _loc1_ = "END";
- break;
- case 13:
- _loc1_ = "ENTER";
- break;
- case 27:
- _loc1_ = "ESCAPE";
- break;
- case 36:
- _loc1_ = "HOME";
- break;
- case 45:
- _loc1_ = "INSERT";
- break;
- case 37:
- _loc1_ = "LEFT";
- break;
- case 34:
- _loc1_ = "PGDN";
- break;
- case 33:
- _loc1_ = "PGUP";
- break;
- case 39:
- _loc1_ = "RIGHT";
- break;
- case 16:
- _loc1_ = "SHIFT";
- break;
- case 32:
- _loc1_ = "SPACE";
- break;
- case 9:
- _loc1_ = "TAB";
- break;
- case 38:
- _loc1_ = "UP";
- break;
- case 186:
- _loc1_ = ";";
- break;
- case 187:
- _loc1_ = "=";
- break;
- case 189:
- _loc1_ = "-";
- break;
- case 191:
- _loc1_ = "/";
- break;
- case 192:
- _loc1_ = "`";
- break;
- case 219:
- _loc1_ = "[";
- break;
- case 220:
- _loc1_ = "\\";
- break;
- case 221:
- _loc1_ = "]";
- break;
- case 222:
- _loc1_ = "\'";
- break;
- case 188:
- _loc1_ = ",";
- break;
- case 190:
- _loc1_ = ".";
- break;
- case 96:
- _loc1_ = "NUMPAD 0";
- break;
- case 97:
- _loc1_ = "NUMPAD 1";
- break;
- case 98:
- _loc1_ = "NUMPAD 2";
- break;
- case 99:
- _loc1_ = "NUMPAD 3";
- break;
- case 100:
- _loc1_ = "NUMPAD 4";
- break;
- case 101:
- _loc1_ = "NUMPAD 5";
- break;
- case 102:
- _loc1_ = "NUMPAD 6";
- break;
- case 103:
- _loc1_ = "NUMPAD 7";
- break;
- case 104:
- _loc1_ = "NUMPAD 8";
- break;
- case 105:
- _loc1_ = "NUMPAD 9";
- break;
- case 106:
- _loc1_ = "MULTIPLY";
- break;
- case 107:
- _loc1_ = "ADD";
- break;
- case 109:
- _loc1_ = "SUBTRACT";
- break;
- case 110:
- _loc1_ = "DECIMAL";
- break;
- case 111:
- _loc1_ = "DIVIDE";
- break;
- default:
- _loc1_ = chr(keyCode);
- _loc1_.toUpperCase();
- }
- return _loc1_;
- }
- function controlGameFlow()
- {
- var _loc3_ = Math.round(myTime - startTime) / 1000;
- switch(stageState)
- {
- case 0:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 30)
- {
- _global.alreadyOut = false;
- secIncrem = 4;
- enemySetBase = _global.FPSforTweenClass * 4;
- stageState = 1;
- }
- case 1:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 60)
- {
- secIncrem = 3;
- stageState = 2;
- }
- case 2:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 90)
- {
- _root.pointer.gun2.gotoAndStop("on");
- _root.pointer.gun3.gotoAndStop("on");
- gun2 = true;
- gun3 = true;
- spread = true;
- parallel = false;
- _root.powerUpMc.gotoAndPlay("flash5");
- _global.SoundManager.PlaySound("bloop");
- secIncrem = 2.5;
- stageState = 3;
- enemyAppearSec = 2;
- }
- case 3:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 120)
- {
- secIncrem = 2;
- stageState = 4;
- }
- case 4:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 150)
- {
- secIncrem = 1.5;
- stageState = 5;
- }
- case 5:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 180)
- {
- _root.pointer.gun2.gotoAndStop("on");
- _root.pointer.gun3.gotoAndStop("on");
- gun2 = true;
- gun3 = true;
- spread = false;
- parallel = true;
- _root.powerUpMc.gotoAndPlay("flash4");
- _global.SoundManager.PlaySound("bloop");
- secIncrem = 1;
- stageState = 6;
- }
- case 6:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 210)
- {
- secIncrem = 0.9;
- stageState = 7;
- }
- case 7:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 240)
- {
- secIncrem = 0.8;
- stageState = 8;
- }
- case 8:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 270)
- {
- secIncrem = 0.7;
- stageState = 9;
- }
- case 9:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 300)
- {
- secIncrem = 0.6;
- stageState = 10;
- }
- case 10:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 330)
- {
- secIncrem = 0.5;
- stageState = 11;
- }
- case 11:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- }
- if(_loc3_ >= 360)
- {
- secIncrem = 0.4;
- stageState = 12;
- }
- case 12:
- if(_loc3_ >= newSecHitTest)
- {
- createRandomLazer();
- newSecHitTest += secIncrem;
- break;
- }
- }
- }
- function createRandomLazer()
- {
- var _loc1_ = 1 + Math.floor(Math.random() * 4);
- if(_loc1_ == 1)
- {
- moveLazerRight(getNextVerticalLazer());
- }
- else if(_loc1_ == 2)
- {
- moveLazerLeft(getNextVerticalLazer());
- }
- else if(_loc1_ == 3)
- {
- moveLazerUp(getNextHorizontalLazer());
- }
- else if(_loc1_ == 4)
- {
- moveLazerDown(getNextHorizontalLazer());
- }
- }
- function getNextHorizontalLazer()
- {
- var _loc1_ = undefined;
- if(horIndicator == 1)
- {
- _loc1_ = "lazer2";
- horIndicator += 1;
- }
- else if(horIndicator == 2)
- {
- _loc1_ = "lazer4";
- horIndicator += 1;
- }
- else if(horIndicator == 3)
- {
- _loc1_ = "lazer6";
- horIndicator += 1;
- }
- else if(horIndicator == 4)
- {
- _loc1_ = "lazer8";
- horIndicator += 1;
- }
- else if(horIndicator == 5)
- {
- _loc1_ = "lazer10";
- horIndicator += 1;
- }
- else if(horIndicator == 6)
- {
- _loc1_ = "lazer12";
- horIndicator += 1;
- }
- else if(horIndicator == 7)
- {
- _loc1_ = "lazer14";
- horIndicator += 1;
- }
- else if(horIndicator == 8)
- {
- _loc1_ = "lazer16";
- horIndicator += 1;
- }
- else if(horIndicator == 9)
- {
- _loc1_ = "lazer18";
- horIndicator += 1;
- }
- else if(horIndicator == 10)
- {
- _loc1_ = "lazer20";
- horIndicator = 1;
- }
- return _loc1_;
- }
- function getNextVerticalLazer()
- {
- var _loc1_ = undefined;
- if(verIndicator == 1)
- {
- _loc1_ = "lazer";
- verIndicator += 1;
- }
- else if(verIndicator == 2)
- {
- _loc1_ = "lazer3";
- verIndicator += 1;
- }
- else if(verIndicator == 3)
- {
- _loc1_ = "lazer5";
- verIndicator += 1;
- }
- else if(verIndicator == 4)
- {
- _loc1_ = "lazer7";
- verIndicator += 1;
- }
- else if(verIndicator == 5)
- {
- _loc1_ = "lazer9";
- verIndicator += 1;
- }
- else if(verIndicator == 6)
- {
- _loc1_ = "lazer11";
- verIndicator += 1;
- }
- else if(verIndicator == 7)
- {
- _loc1_ = "lazer13";
- verIndicator += 1;
- }
- else if(verIndicator == 8)
- {
- _loc1_ = "lazer15";
- verIndicator += 1;
- }
- else if(verIndicator == 9)
- {
- _loc1_ = "lazer17";
- verIndicator += 1;
- }
- else if(verIndicator == 10)
- {
- _loc1_ = "lazer19";
- verIndicator = 1;
- }
- return _loc1_;
- }
- function createNewEnemy()
- {
- var thisRef2 = this;
- var _loc3_ = "enemyFighter_" + numEnemyDepth;
- var _loc4_ = 1 + Math.floor(Math.random() * 4);
- var _loc6_ = 0 + Math.floor(Math.random() * _root.arena._width);
- var _loc5_ = 0 + Math.floor(Math.random() * _root.arena._height);
- _root.enemyLayer.attachMovie("enemy_1",_loc3_,numEnemyDepth);
- if(_loc4_ == 1)
- {
- _root.enemyLayer[_loc3_]._x = 0;
- _root.enemyLayer[_loc3_]._y = _loc5_;
- }
- else if(_loc4_ == 2)
- {
- _root.enemyLayer[_loc3_]._x = _root.arena._width;
- _root.enemyLayer[_loc3_]._y = _loc5_;
- }
- else if(_loc4_ == 3)
- {
- _root.enemyLayer[_loc3_]._x = _loc6_;
- _root.enemyLayer[_loc3_]._y = 0;
- }
- else if(_loc4_ == 4)
- {
- _root.enemyLayer[_loc3_]._x = _loc6_;
- _root.enemyLayer[_loc3_]._y = _root.arena._height;
- }
- numEnemyDepth++;
- arrEnemy.push(_loc3_);
- _root[_loc3_].removeCallback = function(myName)
- {
- thisRef2.removeEnemy(myName);
- };
- }
- function ReportEnemyDeath(strName)
- {
- var _loc1_ = 0;
- while(_loc1_ < arrEnemy.length)
- {
- if(arrEnemy[_loc1_] == strName)
- {
- arrEnemy.splice(_loc1_,1);
- break;
- }
- _loc1_ = _loc1_ + 1;
- }
- }
- function enemyRandomness()
- {
- if(enemyIncrem >= enemySetBase)
- {
- if(enemyAppearSec == 1)
- {
- createNewEnemy();
- enemyIncrem = 0;
- }
- else if(enemyAppearSec == 2)
- {
- var _loc1_ = 1 + Math.floor(Math.random() * 5);
- if(_loc1_ == 1)
- {
- createNewEnemy();
- }
- else if(_loc1_ == 2)
- {
- createNewEnemy();
- }
- else if(_loc1_ == 3)
- {
- createNewEnemy();
- }
- else if(_loc1_ == 4)
- {
- createNewEnemy();
- }
- else if(_loc1_ == 5)
- {
- createNewEnemy();
- createNewEnemy();
- }
- enemyIncrem = 0;
- }
- else if(createNewEnemy == 3)
- {
- _loc1_ = 1 + Math.floor(Math.random() * 4);
- if(_loc1_ == 1)
- {
- createNewEnemy();
- }
- else if(_loc1_ == 2)
- {
- createNewEnemy();
- }
- else if(_loc1_ == 3)
- {
- createNewEnemy();
- }
- else if(_loc1_ == 4)
- {
- createNewEnemy();
- createNewEnemy();
- }
- enemyIncrem = 0;
- }
- }
- enemyIncrem++;
- }
- function generatePowerUp()
- {
- if(!_global.alreadyOut)
- {
- if(counter == 0)
- {
- var startX = 0 + Math.floor(Math.random() * _root.arena._width / 2);
- var startY = 0 + Math.floor(Math.random() * _root.arena._height / 2);
- var tempName = "PowerUp_" + powerDepth;
- powerUpType = 1 + Math.floor(Math.random() * 3);
- if(powerUpType == 1)
- {
- cleanupBullets();
- _root.enemyLayer.attachMovie("power_up_killall",tempName,powerDepth);
- }
- else if(powerUpType == 2)
- {
- if(_global.shieldOn)
- {
- powerUpType = 3;
- _root.enemyLayer.attachMovie("plus_one_life",tempName,powerDepth);
- }
- else
- {
- _root.enemyLayer.attachMovie("power_up_shield",tempName,powerDepth);
- }
- }
- else if(powerUpType == 3)
- {
- _root.enemyLayer.attachMovie("plus_one_life",tempName,powerDepth);
- }
- else if(powerUpType == 4)
- {
- if(parallel)
- {
- powerUpType = 5;
- _root.enemyLayer.attachMovie("spread_S",tempName,powerDepth);
- }
- else
- {
- _root.enemyLayer.attachMovie("parallel_P",tempName,powerDepth);
- }
- }
- else if(powerUpType == 5)
- {
- if(spread)
- {
- powerUpType = 4;
- _root.enemyLayer.attachMovie("parallel_P",tempName,powerDepth);
- }
- else
- {
- _root.enemyLayer.attachMovie("spread_S",tempName,powerDepth);
- }
- }
- _global.alreadyOut = true;
- _root.enemyLayer[tempName]._x = startX;
- _root.enemyLayer[tempName]._y = startY;
- _root.powerRef = eval("_root.enemyLayer." + tempName);
- counter = Math.round(Math.random() * (maxCounter - minCounter)) + minCounter;
- powerDepth++;
- if(powerDepth >= 500000)
- {
- powerDepth = 400000;
- }
- }
- else
- {
- counter--;
- }
- }
- }
- function killAllAnimations(xVal, yVal)
- {
- var _loc2_ = "death_" + numEffectDepth;
- _root.enemyLayer.attachMovie("enemy_1_death",_loc2_,numEffectDepth);
- _root.enemyLayer[_loc2_]._x = xVal;
- _root.enemyLayer[_loc2_]._y = yVal;
- numEffectDepth++;
- if(numEffectDepth >= 600000)
- {
- numEffectDepth = 500000;
- }
- }
- function DestroyAllEnemies()
- {
- var i = 0;
- while(i < arrEnemy.length)
- {
- var clipRef = eval("_root.enemyLayer." + arrEnemy[i]);
- clipRef.dieNow();
- i++;
- }
- delete arrEnemy;
- arrEnemy = new Array();
- }
- function powerUpHitTest()
- {
- if(_global.alreadyOut)
- {
- if(_root.powerRef.hitTest(_root.pointer))
- {
- _root.powerRef.removeMovieClip();
- _global.alreadyOut = false;
- if(powerUpType == 1)
- {
- DestroyAllEnemies();
- _root.powerUpMc.gotoAndPlay("flash3");
- _global.SoundManager.PlaySound("bloop");
- }
- else if(powerUpType == 2)
- {
- if(!_global.shieldOn)
- {
- _root.pointer.attachMovie("avatar_shield","avatarShield",powerDepth);
- _root.powerUpMc.gotoAndPlay("flash2");
- _global.SoundManager.PlaySound("bloop");
- }
- else
- {
- playerLives++;
- _root.lives.lives_txt.text = "Lives: " + playerLives;
- _root.lives.attachMovie("plus1Life","quick_white_flash",powerDepth);
- _root.powerUpMc.gotoAndPlay("flash1");
- _global.SoundManager.PlaySound("bloop");
- }
- }
- else if(powerUpType == 3)
- {
- playerLives++;
- _root.lives.lives_txt.text = "Lives: " + playerLives;
- _root.lives.attachMovie("plus1Life","quick_white_flash",powerDepth);
- _root.powerUpMc.gotoAndPlay("flash1");
- _global.SoundManager.PlaySound("bloop");
- }
- else if(powerUpType == 4)
- {
- _root.pointer.gun2.gotoAndStop("on");
- _root.pointer.gun3.gotoAndStop("on");
- gun2 = true;
- gun3 = true;
- spread = false;
- parallel = true;
- _root.powerUpMc.gotoAndPlay("flash4");
- _global.SoundManager.PlaySound("bloop");
- }
- else if(powerUpType == 5)
- {
- _root.pointer.gun2.gotoAndStop("on");
- _root.pointer.gun3.gotoAndStop("on");
- gun2 = true;
- gun3 = true;
- parallel = false;
- spread = true;
- _root.powerUpMc.gotoAndPlay("flash5");
- _global.SoundManager.PlaySound("bloop");
- }
- powerDepth++;
- if(powerDepth >= 500000)
- {
- powerDepth = 400000;
- }
- }
- }
- }
- function cacheMovieClips()
- {
- _root.crosshair.cacheAsBitmap = true;
- _root.lazer.cacheAsBitmap = true;
- _root.lazer2.cacheAsBitmap = true;
- _root.lazer3.cacheAsBitmap = true;
- _root.lazer4.cacheAsBitmap = true;
- _root.lazer5.cacheAsBitmap = true;
- _root.lazer6.cacheAsBitmap = true;
- _root.lazer7.cacheAsBitmap = true;
- _root.lazer8.cacheAsBitmap = true;
- _root.lazer9.cacheAsBitmap = true;
- _root.lazer10.cacheAsBitmap = true;
- _root.lazer11.cacheAsBitmap = true;
- _root.lazer12.cacheAsBitmap = true;
- _root.lazer13.cacheAsBitmap = true;
- _root.lazer14.cacheAsBitmap = true;
- _root.lazer15.cacheAsBitmap = true;
- _root.lazer16.cacheAsBitmap = true;
- _root.lazer17.cacheAsBitmap = true;
- _root.lazer18.cacheAsBitmap = true;
- _root.lazer19.cacheAsBitmap = true;
- _root.lazer20.cacheAsBitmap = true;
- _root.reset.cacheAsBitmap = true;
- _root.mainMenu.cacheAsBitmap = true;
- }
- function moveIt(mClip, valX, valY, dur)
- {
- nextTween++;
- if(nextTween == 1)
- {
- moveMe1(mClip,valX,valY,dur);
- }
- else if(nextTween == 2)
- {
- moveMe2(mClip,valX,valY,dur);
- }
- else if(nextTween == 3)
- {
- moveMe3(mClip,valX,valY,dur);
- }
- else if(nextTween == 4)
- {
- moveMe4(mClip,valX,valY,dur);
- }
- else if(nextTween == 5)
- {
- moveMe5(mClip,valX,valY,dur);
- }
- else if(nextTween == 6)
- {
- moveMe6(mClip,valX,valY,dur);
- }
- else if(nextTween == 7)
- {
- moveMe7(mClip,valX,valY,dur);
- }
- else if(nextTween == 8)
- {
- moveMe8(mClip,valX,valY,dur);
- }
- else if(nextTween == 9)
- {
- moveMe9(mClip,valX,valY,dur);
- }
- else if(nextTween == 10)
- {
- moveMe10(mClip,valX,valY,dur);
- }
- else if(nextTween == 11)
- {
- moveMe11(mClip,valX,valY,dur);
- }
- else if(nextTween == 12)
- {
- moveMe12(mClip,valX,valY,dur);
- }
- else if(nextTween == 13)
- {
- moveMe13(mClip,valX,valY,dur);
- }
- else if(nextTween == 14)
- {
- moveMe14(mClip,valX,valY,dur);
- }
- else if(nextTween == 15)
- {
- moveMe15(mClip,valX,valY,dur);
- }
- else if(nextTween == 16)
- {
- moveMe16(mClip,valX,valY,dur);
- }
- else if(nextTween == 17)
- {
- moveMe17(mClip,valX,valY,dur);
- }
- else if(nextTween == 18)
- {
- moveMe18(mClip,valX,valY,dur);
- }
- else if(nextTween == 19)
- {
- moveMe19(mClip,valX,valY,dur);
- }
- else if(nextTween == 20)
- {
- moveMe20(mClip,valX,valY,dur);
- }
- else if(nextTween == 21)
- {
- moveMe21(mClip,valX,valY,dur);
- }
- else if(nextTween == 22)
- {
- moveMe22(mClip,valX,valY,dur);
- }
- else if(nextTween == 23)
- {
- moveMe23(mClip,valX,valY,dur);
- }
- else if(nextTween == 24)
- {
- moveMe24(mClip,valX,valY,dur);
- }
- else if(nextTween == 25)
- {
- moveMe25(mClip,valX,valY,dur);
- }
- else if(nextTween == 26)
- {
- moveMe26(mClip,valX,valY,dur);
- }
- else if(nextTween == 27)
- {
- moveMe27(mClip,valX,valY,dur);
- }
- else if(nextTween == 28)
- {
- moveMe28(mClip,valX,valY,dur);
- }
- else if(nextTween == 29)
- {
- moveMe29(mClip,valX,valY,dur);
- }
- else if(nextTween == 30)
- {
- moveMe30(mClip,valX,valY,dur);
- }
- else if(nextTween == 31)
- {
- moveMe1(mClip,valX,valY,dur);
- nextTween = 1;
- }
- }
- function moveMe1(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe2(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe3(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe4(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe5(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe6(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe7(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe8(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe9(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe10(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe11(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe12(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe13(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe14(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe15(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe16(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe17(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe18(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe19(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe20(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe21(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe22(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe23(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe24(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe25(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe26(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe27(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe28(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe29(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- function moveMe30(mc, xVal, yVal, duration)
- {
- var _loc3_ = mc._x;
- var _loc4_ = mc._y;
- myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
- myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
- myTweening.FPS = _global.FPSforTweenClass;
- myTweening.onMotionFinished = function()
- {
- };
- }
- stop();
- var vecMomentum = new Vector();
- var maxSpeed;
- var friction;
- var numSensitivity;
- var avatarLife;
- var secondBulletCounter;
- var numBulletDepth;
- var numBulletDepth2;
- var numEffectDepth;
- var arrBullets;
- var arrEnemy;
- var isTouching;
- var isHeld;
- var myTime;
- var startTime;
- var stageState;
- var lasersLeftPosX;
- var lasersLeftPosY;
- var lasersRightPosX;
- var lasersRightPosY;
- var prevScore;
- var lasersTopPosX;
- var lasersTopPosY;
- var lasersBottomPosX;
- var lasersBottomPosY;
- var verIndicator;
- var horIndicator;
- var newSecHitTest;
- var secIncrem;
- var enemySetBase;
- var enemyIncrem;
- var numEnemyDepth;
- var startUpPeriod;
- var dyingProcess;
- var playerLives;
- var powerDepth;
- var counter;
- var minCounter;
- var maxCounter;
- var powerRef;
- var powerUpType;
- var instDone;
- var nextTween;
- var killAll;
- var enemyAppearSec;
- var parallel;
- var spread;
- var gun2;
- var gun3;
- _root.navi_game.mainMenu.onPress = function()
- {
- cleanupBullets();
- _root.gotoAndPlay("main_menu");
- };
- _root.navi_game.mainMenu.onRollOver = function()
- {
- moveNavi_menu(navi_pointer);
- };
- _root.navi_game.mainMenu.onRollOut = function()
- {
- moveNavi_back(navi_pointer);
- };
- _root.navi_game.high_scores.onPress = function()
- {
- _global.dataVector.Set(_global.userScore);
- _root.gotoAndPlay("game_over");
- getUrl("http://rankz.armorbot.com/blu3p/", "_blank");
- };
- _root.navi_game.high_scores.onRollOver = function()
- {
- moveNavi_score(navi_pointer);
- };
- _root.navi_game.high_scores.onRollOut = function()
- {
- moveNavi_back(navi_pointer);
- };
- _root.arena.onLoad = function()
- {
- this.gotoAndPlay("fadeIn");
- };
- _root.small_title.onLoad = function()
- {
- this.gotoAndPlay("fadeIn");
- };
- _root.pointer.onLoad = function()
- {
- this.gotoAndPlay("fadeIn");
- };
- _root.arena_mask.onLoad = function()
- {
- this._x = _root.arena._x;
- this._y = _root.arena._y;
- };
-